//
//  GPChatViewModel.h
//  GuaPi
//
//  Created by 陈华 on 2017/6/22.
//  Copyright © 2017年 Joanlove. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface GPChatViewModel : NSObject

/**聊天类型*/
@property(nonatomic,assign) EMChatType chatType;
/**会话的Id - 环信id */
@property(nonatomic,copy) NSString *conversationId;
/**收件人的Id - 环信id */
@property(nonatomic,copy) NSString *toId;
/**收件人的昵称 - 如果是群聊的话，就是群聊的名称*/
@property(nonatomic,copy) NSString *toNickname;
/**收件人头像的URL*/
@property(nonatomic,copy) NSString *toAvatarURLPath;
/**收件人的头像*/
@property(nonatomic,strong) UIImage *toAvatarImage;
/**收件人的用户ID-- uid*/
@property(nonatomic,copy) NSString *uid;


/**
 快速创建

 @param chatType 聊天类型
 @param conversationId 会话ID
 @param toId 收件人id
 @param nickName 收件人昵称
 @param toAvatarURLPath 收件人头像URL
 @return 返回
 */
- (instancetype)initWithChatType:(EMChatType )chatType
                  conversationId:(NSString *)conversationId
                            toId:(NSString *)toId
                      toNickName:(NSString *)nickName
                 toAvatarURLPath:(NSString *)toAvatarURLPath;

/**
 快速创建
 
 @param chatType 聊天类型
 @param conversationId 会话ID
 @param toId 收件人id
 @param nickName 收件人昵称
 @param toAvatarURLPath 收件人头像URL
 @return 返回
 */
- (instancetype)initWithChatType:(EMChatType )chatType
                          userId:(NSString *)uid
                  conversationId:(NSString *)conversationId
                            toId:(NSString *)toId
                      toNickName:(NSString *)nickName
                 toAvatarURLPath:(NSString *)toAvatarURLPath;


#pragma mark - 快速发送SOS紧急消息
/**快速发送携带经纬度图片地址的SOS紧急消息*/
- (void)sendSOSMessage:(UIImage *)originImage latitude:(double)latitude longitude:(double)longitude address:(NSString *)address;
- (void)sendSOSLocationMessage:(NSString *)address latitude:(double)latitude longitude:(double)longitude;
/**发送SOS测试文本消息*/
- (void)sendSOSTestMessage:(NSString *)sosTest;
/**快速发送图片消息*/
- (void)sendImageMessage:(UIImage *)originImage;
@end
